//
//  ListCarTableViewCell.m
//  HDYS
//
//  Created by qianfeng on 15-4-22.
//  Copyright (c) 2015年 kay. All rights reserved.
//

#import "ListCarTableViewCell.h"

@implementation ListCarTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self createUI];
    }
    return self;
}

-(void)createUI{
    UIImageView *iconImgView = [[UIImageView alloc] initWithFrame:CGRectMake(10, 5, 80, 80)];
    iconImgView.image = [UIImage imageNamed:@"ipadweiboFemale"];
    [self.contentView addSubview:iconImgView];
    
    UILabel *nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(iconImgView.frame.origin.x + iconImgView.frame.size.width + 5, iconImgView.frame.origin.y, 200, 20)];
    nameLabel.text = @"商品名字";
    nameLabel.font = [UIFont systemFontOfSize:14];
    [self.contentView addSubview:nameLabel];
    
//    UIButton *cancleBtn = [UIButton buttonWithType:UIButtonTypeCustom];
//    cancleBtn.frame = CGRectMake(230, nameLabel.frame.origin.y + nameLabel.frame.size.height + 5, 60, 30);
//    [cancleBtn setTitle:@"放弃" forState:UIControlStateNormal];
//    [cancleBtn setBackgroundImage:[UIImage imageNamed:@"cancle_button"] forState:UIControlStateNormal];
//    [cancleBtn addTarget:self action:@selector(cancleBtnClick) forControlEvents:UIControlEventTouchUpInside];
//    [self.contentView addSubview:cancleBtn];
}

@end
